projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0795a7
)
image: Use new snapshot transforms
author
Benjamin Otte
<otte@redhat.com>
Thu, 21 Feb 2019 04:34:12 +0000
(
05:34
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 21 Feb 2019 18:47:28 +0000
(19:47 +0100)
gtk/gtkimage.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimage.c
b/gtk/gtkimage.c
index 20e9bc41e377b9de50799d85fe449419d8e69bcb..b43edd7a4101618c72d13cc93a0a2e5cdf480c9f 100644
(file)
--- a/
gtk/gtkimage.c
+++ b/
gtk/gtkimage.c
@@
-1125,9
+1125,10
@@
gtk_image_snapshot (GtkWidget *widget,
else
y = CLAMP (baseline - h * gtk_image_get_baseline_align (image), 0, height - ceil (h));
- gtk_snapshot_offset (snapshot, x, y);
+ gtk_snapshot_save (snapshot);
+ gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (x, y));
gdk_paintable_snapshot (GDK_PAINTABLE (priv->icon_helper), snapshot, w, h);
- gtk_snapshot_
offset (snapshot, -x, -y
);
+ gtk_snapshot_
restore (snapshot
);
}
}